package com.xnewtech.xplatform.swan.register.modular.modname.service;

import com.xnewtech.xplatform.swan.model.page.PageResult;
import com.xnewtech.xplatform.swan.register.modular.modname.entity.TestDemo;
import com.xnewtech.xplatform.swan.register.modular.modname.model.params.TestDemoParam;
import com.xnewtech.xplatform.swan.register.modular.modname.model.result.TestDemoResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * demo表 服务类
 * </p>
 *
 * @author xnew
 * @since 2020-11-26
 */
public interface TestDemoService extends IService<TestDemo> {

    /**
     * 新增
     *
     * @author xnew
     * @Date 2020-11-26
     */
    void add(TestDemoParam param);

    /**
     * 删除
     *
     * @author xnew
     * @Date 2020-11-26
     */
    void delete(TestDemoParam param);

    /**
     * 更新
     *
     * @author xnew
     * @Date 2020-11-26
     */
    void update(TestDemoParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author xnew
     * @Date 2020-11-26
     */
    TestDemoResult findBySpec(TestDemoParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author xnew
     * @Date 2020-11-26
     */
    List<TestDemoResult> findListBySpec(TestDemoParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author xnew
     * @Date 2020-11-26
     */
     PageResult<TestDemoResult> findPageBySpec(TestDemoParam param);

}
